<?php
$type = isset($type)?$type:service_type::ADMIDDLE;
$dao = new DaoAd();
$ad = $dao->getOne(" type='$type'");
if($type==service_type::ADMIDDLE):
?>
<div class="add">
	<a href="<?php echo $ad['url'];?>"><img src="<?php echo $ad['src'];?>" /></a>
</div>
<?php else:?>
<div class="ad_left">
	<a href="<?php echo $ad['url'];?>"><img src="<?php echo $ad['src'];?>" /></a>
</div>
<?php endif;?>
<script type="text/javascript">
$(document).ready(function(){
	$(".ad_left img").LoadImage(true,185,556);		
});
</script>
